import VueRouter from "vue-router";
import About from '../pages/About.vue'
import Home from '../pages/Home.vue'
import News from '../pages/News.vue'
import Messages from '../pages/Messages.vue'

export default new VueRouter({
    routes: [{
        path: "/about",
        name: "About",
        component: About
    }, {
        path: "/home",
        name: "Home",
        component: Home,
        children: [{
            path: "news",
            name: "News",
            component: News
        }, {
            path: "messages",
            name: "Messages",
            component: Messages
        }]
    }]
})